<?php
$cakeDescription = __d('cake_dev', 'CakePHP: the rapid development php framework');
$cakeVersion = __d('cake_dev', 'CakePHP %s', Configure::version())
?>
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <?php echo $this->Html->charset(); ?>
        <meta charset="utf-8">
        <?php echo $this->Html->meta('keywords', $seo_keyword);?>
        <?php echo $this->Html->meta('description', $seo_description);?>
        <title>
            <?php //echo $cakeDescription ?>:
            <?php echo $title_for_layout; ?>
        </title>
        <meta charset="utf-8">
        <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" />
        <script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script>
        <link href='http://fonts.googleapis.com/css?family=Arimo&subset=latin,vietnamese' rel='stylesheet' type='text/css'/>
		<link href='http://fonts.googleapis.com/css?family=Chewy' rel='stylesheet' type='text/css'>
		<link rel="shortcut icon" href="<?php echo $this->webroot; ?>images/favicon.ico" />
        <?php
        //echo $this->Html->meta('icon');

        echo $this->Html->css(array('bootstrap.css','style.css','../js/plugins/gallerry/jquery.ad-gallery.css','jquery-ui-1.10.4.custom.css',
            'jquery.tagsinput.css'));
        echo $this->Html->script(array('jquery-1.10.2.js', 'bootstrap.min.js','plugins/gallerry/jquery.ad-gallery.js', 'common.js','maps.client.js',
            'jquery.tagsinput.js'));
        echo $this->fetch('meta');
        echo $this->fetch('css');
        echo $this->fetch('script');
        ?>
    </head>
    <body>
        <div id="container_body">
        <!-------------------------- header ------------------------->
        <div id="h_header" class="main_width">
            <div id="h_header_link">
                <di id="h_container_flag">
                    <form action="<?php echo $this->here; ?>" method="post" style="margin:0px">
                            <input type="hidden" name="changeLanguage" value="eng" id="changeLanguage" />
                            <img src="<?php echo $this->webroot; ?>img/en.png" data-value="eng" class="language_value <?php echo Configure::read('Config.language')== "eng"?"active":""?>" />
                            <img src="<?php echo $this->webroot; ?>img/vn.png" data-value="vn" class=" language_value <?php echo Configure::read('Config.language')== "vn"?"active":""?>"/>
                    </form>
                </di>
                <ul id="h_link_services">
                    <li class="last_link"><a href="<?php echo $this->Html->url('/home/sitemap')?>"><?php echo __('SiteMap'); ?></a></li>
                    <div class="clearBoth"></div>
                </ul>

                <br class="clearBoth" />
            </div>
            <div id="container_search">
                <a href="<?php echo $this->Html->url('/home/index')?>"><img src="<?php echo $this->webroot; ?>images/logo.jpg" /></a>
                <div class="input-append pull-right search">
                    <form method="post" action="/home/searchproperty">
                        <input type="text" placeholder="<?php echo __('Key word'); ?>" class="h_width_search" name="data[Search][search_name]"  />
                        <input type="hidden" name="data[hiddent_search][true]" value="1" />
                        <button type="submit" class="btn btn-danger h_button_search" style="top:0px" ><?php echo __('Search'); ?></button>
                    </form>
                    
                </div>
                <div class="icons pull-right ">
                    <a href="http://www.rss.com" target="_blank">
                        <img src="<?php echo $this->webroot; ?>images/rss.png" alt="RSS" width="25"/>
                    </a> 
                    <a href="https://www.facebook.com/" target="_blank" rel="me">
                        <img src="<?php echo $this->webroot; ?>images/facebook.png" alt="Facebook" width="25"/>
                    </a>
                    <a href="https://twitter.com/" target="_blank" rel="me">
                        <img src="<?php echo $this->webroot; ?>images/twitter.png" alt="Twitter" width="25"/>
                    </a>
                    <a href="http://www.youtube.com/" target="_blank" rel="me">
                        <img src="<?php echo $this->webroot; ?>images/youtube.png" alt="YouTube" width="25"/>
                    </a> 
                    <a href="HTTPS://plus.Google.com/" target="_blank" rel="me">
                        <img src="<?php echo $this->webroot; ?>images/gplus.png" alt="Gplus" width="25"/>
                    </a> 
                </div>

            </div>
            <br class="clearBoth" />
        </div>
        
        <!----------------------------- end header ----------------------------------->
        <!--<?php echo $this->Session->flash(); ?>-->
        <!-- navigation -->
            <?php echo $this->element('navigation')?>
        <!-- end avigation -->
        <!-------- CONTENT ---------------->
         <?php echo $this->fetch('content'); ?>
        <!-------- END CONTENT ---------------->
        
        <!-- navigation -->
            <?php echo $this->element('link_footer')?>
        <!-- end avigation -->
        <div id="h_footer" >
            <div class="main_width boder_radius">
                <div style="text-align: center">
                    <span style="text-transform: uppercase;"><?php echo __('Creation - Real Estate Agency');?></span><br/>
                   <?php echo __('creation address');?><br/>
                    <?php echo __('creation tel');?>
                </div>
            </div>
        </div>
    </body>
    <script>
            $(document).ready(function(){
                $(".language_value").on('click',function(){
                    var val = $(this).data('value');
                    $("#changeLanguage").val(val);
                    $(this).parents('form').submit();
                    return false;
                });
                
                $(document).on('change',".location_check_fix_a",function(){
                    
                    if($(this).is(':checked')){
                        $(this).parents(".location_checkall").find('.h_width_location').prop('checked',true);
                    }else{
                        $(this).parents(".location_checkall").find('.h_width_location').prop('checked',false);
                    }
                });
                
                $('#ContactPropertyNo').tagsInput({width:'308',height:'100'});
            });
    </script>
</html>